package com.songlin.houxin.admin.api.converter;


import com.songlin.houxin.admin.api.entity.Region;
import com.songlin.houxin.admin.api.vo.RegionVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author jinYuLinLang
 * @version 1.0.0
 * @ClassName RegionConverter.java
 * @Description <p></p>
 * @createTime 2022-03-12 06:57:00
 */
@Mapper
public interface RegionConverter {
    RegionConverter INSTANCE = Mappers.getMapper(RegionConverter.class);


    List<RegionVO> toRegionVOList(List<Region> regionList);

    RegionVO toRegionVO(Region region);
}
